import React from 'react';
import { TouchableOpacity } from 'react-native';
/**
 * TouchableHighlight : 必须有onPress属性
 * **/
const Opacity = ({ children, onPress }: any) => {
	return (
		<TouchableOpacity onPress={onPress} activeOpacity={0.6}>
			{children}
		</TouchableOpacity>
	);
};
Opacity.defaultProps = {
	onPress: () => {},
};
export default Opacity;
